Optimal. Leaf size=23 \[ x (b B-a C)+\frac{b C \sin (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0231874, antiderivative size = 23, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 48, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.042, Rules used = {24, 2637} \[ x (b B-a C)+\frac{b C \sin (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 24
Rule 2637
Rubi steps
\begin{align*} \int \frac{a b B-a^2 C+b^2 B \cos (c+d x)+b^2 C \cos ^2(c+d x)}{a+b \cos (c+d x)} \, dx &=\frac{\int \left (b^2 (b B-a C)+b^3 C \cos (c+d x)\right ) \, dx}{b^2}\\ &=(b B-a C) x+(b C) \int \cos (c+d x) \, dx\\ &=(b B-a C) x+\frac{b C \sin (c+d x)}{d}\\ \end{align*}
Mathematica [A] time = 0.0107633, size = 34, normalized size = 1.48 \[ -a C x+b B x+\frac{b C \sin (c) \cos (d x)}{d}+\frac{b C \cos (c) \sin (d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.024, size = 32, normalized size = 1.4 \begin{align*}{\frac{Cb\sin \left ( dx+c \right ) +bB \left ( dx+c \right ) -aC \left ( dx+c \right ) }{d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.56482, size = 55, normalized size = 2.39 \begin{align*} -\frac{{\left (C a - B b\right )} d x - C b \sin \left (d x + c\right )}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.90777, size = 58, normalized size = 2.52 \begin{align*} \begin{cases} B b x - C a x + \frac{C b \sin{\left (c + d x \right )}}{d} & \text{for}\: d \neq 0 \\\frac{x \left (B a b + B b^{2} \cos{\left (c \right )} - C a^{2} + C b^{2} \cos ^{2}{\left (c \right )}\right )}{a + b \cos{\left (c \right )}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.24834, size = 65, normalized size = 2.83 \begin{align*} -\frac{{\left (C a - B b\right )}{\left (d x + c\right )} - \frac{2 \, C b \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )}{\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 1}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]